package com.mhy.entity.vo.project;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mhy.entity.enums.ProjectStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@ApiModel("项目创建VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ProjectCreateVO {

    @ApiModelProperty("项目名称")
    private String name;
    @ApiModelProperty("项目描述")
    private String description;
    @ApiModelProperty("所属用户")
    private Integer userId;
    @ApiModelProperty("导入XML")
    private String xml;
    @ApiModelProperty("公私有")
    private ProjectStatusEnum status;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date producetime;
    @ApiModelProperty("对应的想定")
    private String scenario;
}
